/*
 * puf4000_rtc_S35392.h
 *
 *  Created on: 2016-04-12
 *      Author: Li Zhuohan
 */

#ifndef __PUF4000_RTC_S35392_H_
#define __PUF4000_RTC_S35392_H_

#ifndef	TRUE
#define	TRUE		(1)
#endif

#ifndef	FALSE
#define	FALSE		(0)
#endif

#ifndef	NULL_P
#define	NULL_P		((void *) 0)
#endif

typedef struct{
	uint8_t		year;
	uint8_t		month;
	uint8_t		day;
	uint8_t		hour;
	uint8_t		minute;
	uint8_t		second;
	uint8_t		RSV[2];
}TTime_TypeDef;

void	InitRTC		(void);
uint8_t	RTC_RdTm	(TTime_Typedef *pRTC);
uint8_t	RTC_WrTm	(TTime_Typedef *pRTC);

#endif /* __PUF4000_RTC_S35392_H_ */

